package com.netdisk.mapper;

import com.netdisk.dto.request.file.RestoreDTO;
import com.netdisk.entity.Trash;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface TrashMapper {

    void insert(Trash file);

    void delete(RestoreDTO restoreDTO);

    @Select("select count(*) from trash where user_id = #{userId}")
    Integer getTrashCountById(Integer userId);

}